import datetime
from django.http import HttpResponse, JsonResponse
import logging

logger = logging.getLogger('django')


def time_view(request):
    now = datetime.datetime.now()
    logger.info("this is a log !")
    html = "<h1>now: %s</h1>" % logger

    return JsonResponse({
        "log": html
    })
